using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN LoaiThietBiServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:07/10/2010 39:07:23</para>
	/// <para>Class Name: LoaiThietBiServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class LoaiThietBiService : ILoaiThietBiService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: LoaiThietBi_ID</para>
		/// <para>Output: LoaiThietBiEntity</para>
		///</summary>
		public LoaiThietBiEntity SelectOne(int LoaiThietBi_ID){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.SelectOne(LoaiThietBi_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOneByMaLoaiThietBi</para>
		/// <para>Input: MaLoaiThietBi</para>
		/// <para>Output: LoaiThietBiEntity</para>
		///</summary>
		public LoaiThietBiEntity SelectOneByMaLoaiThietBi(string MaLoaiThietBi){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.SelectOneByMaLoaiThietBi(MaLoaiThietBi);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of LoaiThietBiEntity</para>
		///</summary>
		public List<LoaiThietBiEntity> SelectAll(){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of LoaiThietBiEntity</para>
		///</summary>
		public List<LoaiThietBiEntity> SelectAllFilter(string strFilter){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: LoaiThietBiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(LoaiThietBiEntity o){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: LoaiThietBiEntity</para>
		/// <para>Output: LoaiThietBiEntity</para>
		///</summary>
		public LoaiThietBiEntity SaveRet(LoaiThietBiEntity o){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of LoaiThietBiEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<LoaiThietBiEntity> list){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of LoaiThietBiEntity</para>
		/// <para>Output: List of LoaiThietBiEntity</para>
		///</summary>
		public List<LoaiThietBiEntity> SaveListRet(List<LoaiThietBiEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Update</para>
		/// <para>Input: LoaiThietBiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(LoaiThietBiEntity o){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of LoaiThietBiEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<LoaiThietBiEntity> list){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateMaLoaiThietBi</para>
		/// <para>Input: NewMaLoaiThietBi,LoaiThietBi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaLoaiThietBi(string NewMaLoaiThietBi,int LoaiThietBi_ID){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.UpdateMaLoaiThietBi(NewMaLoaiThietBi,LoaiThietBi_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateTenLoaiThietBi</para>
		/// <para>Input: NewTenLoaiThietBi,LoaiThietBi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenLoaiThietBi(string NewTenLoaiThietBi,int LoaiThietBi_ID){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.UpdateTenLoaiThietBi(NewTenLoaiThietBi,LoaiThietBi_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Delete</para>
		/// <para>Input: LoaiThietBiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(LoaiThietBiEntity o){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: LoaiThietBi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int LoaiThietBi_ID){
			LoaiThietBiDAO dao = new LoaiThietBiDAO();
			return dao.DeleteByID(LoaiThietBi_ID);
		}
		#endregion

		#region Select,delete by LoaiThietBi_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END LoaiThietBiWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

